DeleteKey Method

The DeleteKey Method deletes an entire key. Not a value, to do this simply set the value to an empty string using SaveSetting. take care to ensure that you are deleting the key that you intend to delete. There are no arguments for the DeleteKey Method, however the RegKey and SubKey properties determine the key to be deleted.

Syntax:

Dim Reg as New RegEasy
With Reg
    .RegKey = CURUSER
    .SubKey = "Software\Regeasy\clsid"
    .DeleteKey
End With

This will delete every item in the SubKey: Software\Regeasy\clsid.

 

(c)1998 Silicon Prairie Software Co. All rights reserved.